<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla security
defined('_JEXEC') or die;
// Get configs
$params = $this->params;

$joosam_plugin = JPluginHelper::isEnabled('system', 'joosam');
if($joosam_plugin):
	$jsm_hidden_validate = JRequest::getVar('jsm_hidden_validate', 'direct');
	if($jsm_hidden_validate == 'direct'){
		$jsm_hidden_pageload = 'home';
	}
	else{
		$jsm_hidden_pageload = JRequest::getVar('jsm_hidden_pageload', 'home');
	} ?>
	<noscript>
		<style>
		body{
			padding-top:70px !important;
		}
		</style>
		<div style="
				position:fixed;
				height:50px;
				width:100%;
				background:white;
				border:2px solid #00ccff;
				color:red;
				margin:auto;
				padding:15px 0 0 0;
				top:0px;
				left:0px;
				font-size:20px;
				font-weight:bold;
				text-align:center;
				z-index:9999999;"
							>
			<?php echo JText::_('COM_JOOSAM_VIEW_DEFAULT_WARNING_JAVASCRIPT_FULL'); ?>
		</div>
		<div class="jsm_search" style="background:white; color:red; position:absolute; z-index:9999998; margin:0; font-weight:bold; font-size:18px; width:94%; padding:15px; text-align:center; ">
			<?php echo JText::_('COM_JOOSAM_VIEW_DEFAULT_WARNING_JAVASCRIPT_SMALL'); ?>
		</div>
	</noscript>

	<style>
		.jsm_songlist{
			border: 1px solid #FFFFFF;
		}
		.jsm_songlist td{
			padding: 0 10px 0 4px;
			border: 1px solid #FFFFFF;
		}
	</style>
	<div class="jsm_content">
		<div class="jsm_header">
			<?php echo $this->loadTemplate('header');?>
		</div>
		<div class="jsm_body">
			<?php echo $this->loadTemplate($jsm_hidden_pageload);?>
		</div>
	</div><?php
else: ?>
	<div class="jsm_content">
		<div class="jsm_header">
			<?php echo JText::_('COM_JOOSAM_ERR_NO_JOOSAM_PLUGIN'); ?>
		</div>
	</div><?php
endif;